package com.example.administrator.pms.User;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.administrator.pms.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LoginActivity extends Activity {

    @Bind(R.id.iv_icon)
    ImageView ivIcon;
    @Bind(R.id.tv_login_input)
    TextView tvLoginInput;
    @Bind(R.id.et_username)
    EditText etUsername;
    @Bind(R.id.login_password_input)
    TextView loginPasswordInput;
    @Bind(R.id.et_password)
    EditText etPassword;
    @Bind(R.id.btn_login)
    Button btnLogin;
    @Bind(R.id.btn_register)
    TextView btnRegister;
    @Bind(R.id.rl_login)
    RelativeLayout rlLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.btn_register)
    public void onViewClicked() {
        Intent intent_register= new Intent();
        intent_register.setClass(this, RegisterActivity.class);
        startActivity(intent_register);
    }
}
